package com.social.service;

import com.social.dao.ForumAdMapper;
import com.social.dao.model.ForumAd;
import com.social.dao.model.ForumAdExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ForumAdService {
    @Autowired
    private ForumAdMapper forumAdMapper;

    private static final Logger logger = Logger.getLogger(ForumAdService.class);

    public int countByExample(ForumAdExample example) {
        return this.forumAdMapper.countByExample(example);
    }

    public ForumAd selectByPrimaryKey(String id) {
        return this.forumAdMapper.selectByPrimaryKey(id);
    }

    public List<ForumAd> selectByExample(ForumAdExample example) {
        return this.forumAdMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.forumAdMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(ForumAd record) {
        return this.forumAdMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(ForumAd record) {
        return this.forumAdMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(ForumAdExample example) {
        return this.forumAdMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(ForumAd record, ForumAdExample example) {
        return this.forumAdMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(ForumAd record, ForumAdExample example) {
        return this.forumAdMapper.updateByExample(record, example);
    }

    public int insert(ForumAd record) {
        return this.forumAdMapper.insert(record);
    }

    public int insertSelective(ForumAd record) {
        return this.forumAdMapper.insertSelective(record);
    }
}